package com.educate.service;

import com.educate.pojo.User;

/**
 * @author yjj
 * @date 2021/11/7
 * @description: 用户Service
 */
public interface UserService {

    /**
     * 查询用户详细信息
     * @param username
     * @return User
     */
    User getUserInfoByUsername(String username);

    /**
     * 查询角色code和权限
     * @param userId
     * @return String
     */
    String getUserAuthorityInfo(Long userId);

    /**
     * 注册新用户
     * @param username
     * @param password
     * @return int
     */
    int registerNewUser(String username, String password);
}
